package com.lzh.service;

import com.lzh.bean.Department;
import com.lzh.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author reborn
 * @create 2020/3/11-21:38
 */
@Service
public class DepartmentService {
    @Autowired
    private  DepartmentMapper departmentMapper;

    public List<Department> getDept(){
        List<Department> list=departmentMapper.selectByExample(null);
        return list;
    }
}
